<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    /* 
      https://juejin.im/post/6856419501777846279
     */
    function myCreate(obj) {
      function F() {}
      F.prototype = obj
      return new F()
    }

  </script>
</body>
</html>